package com.xge.common_libary.api

import com.xge.common_libary.bean.BFRInfoBean
import com.xge.common_libary.bean.CovertNumBean
import com.xge.common_libary.bean.HealthGuardBean
import com.xge.common_libary.bean.JTWFInfoBean
import com.xge.common_libary.bean.KuaiDiInfoBean
import com.xge.common_libary.bean.PengYouQuanBean
import com.xge.common_libary.bean.PhoneQueryBean
import com.xge.common_libary.bean.QiaoMenInfoBean
import com.xge.common_libary.bean.SFZInfoBean
import com.xge.common_libary.bean.SolarTermsInfoBean
import com.xge.common_libary.bean.SurnameInfoBean
import com.xge.common_libary.bean.YaoPinInfoBean
import com.xge.common_libary.http.BaseResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface ApiService {
    //手机号码查询
    @GET("dailytel/index")
    suspend fun getPhoneQueryInfo(
        @Query("key") key: String,
        @Query("word") word: String
    ): BaseResponse<PhoneQueryBean>

    //二十四节气查询
    @GET("jieqi/index")
    suspend fun solarTermsInfo(
        @Query("key") key: String,
        @Query("word") word: String
    ): BaseResponse<SolarTermsInfoBean>

    //健康生活小妙招
    @GET("healthskill/index")
    suspend fun healthGuardQuery(
        @Query("key") key: String,
        @Query("word") word: String
    ): BaseResponse<HealthGuardBean>

    //大小写金额转换
    @GET("cnmoney/index")
    suspend fun covertNum(
        @Query("key") key: String,
        @Query("money") word: String
    ): BaseResponse<CovertNumBean>

    //身份证归属地
    @GET("sfz/index")
    suspend fun sfzInfo(
        @Query("key") key: String,
        @Query("idcard") idcard: String
    ): BaseResponse<SFZInfoBean>

    //生活小窍门
    @GET("qiaomen/index")
    suspend fun qiaoMenInfo(
        @Query("key") key: String,
    ): BaseResponse<QiaoMenInfoBean>

    //BFR体脂率
    @GET("bfrsum/index")
    suspend fun queryBFR(
        @Query("key") key: String,
        @Query("height") height: String,
        @Query("weight") weight: String,
        @Query("age") age: String,
        @Query("sex") sex: String,
    ): BaseResponse<BFRInfoBean>

    //违章代码查询
    @GET("jtwfcode/index")
    suspend fun jtwfQuery(
        @Query("key") key: String,
        @Query("code") code: String,
    ): BaseResponse<JTWFInfoBean>

    //姓氏起源
    @GET("surname/index")
    suspend fun surname(
        @Query("key") key: String,
        @Query("xing") xing: String,
    ): BaseResponse<SurnameInfoBean>

    //药品说明书
    @GET("yaopin/index")
    suspend fun yaopin(
        @Query("key") key: String,
        @Query("word") word: String
    ): BaseResponse<YaoPinInfoBean>

    //快递查询
    @GET("kuaidi/index")
    suspend fun kuaidi(
        @Query("key") key: String,
        @Query("number") word: String,
    ): BaseResponse<KuaiDiInfoBean>

    //中药大全
    @GET("zhongyao/index")
    suspend fun zhongyao(
        @Query("key") key: String,
        @Query("word") word: String,
    ): BaseResponse<YaoPinInfoBean>

    //朋友圈文案
    @GET("pyqwenan/index")
    suspend fun pengyouquan(
        @Query("key") key: String,
    ): BaseResponse<PengYouQuanBean>
}